/*
 * FileName: Basic.js
 * CreateAt: 2018.06.28
 * Author: awoo
 * E-mail: awoooo@me.com
 */

import { Model } from '~/utils'

const Basic = new Model({
  'input': {
    type: 0,
    form: 'input',
    label: 'first',
    placeholder: 'Start',
    hint: 'Not a Number',
    validate: {
      required: true,
      reg: /^(-?\d+)(\.\d+)?$/g
    }
  },
  'select': {
    type: '',
    form: 'select',
    label: 'enum',
    options: [1, 2],
    default: 2,
    validate: {
      required: true,
    }
  },
  'degree': {
    type: '',
    form: 'input',
    label: 'degree',
    placeholder: 'end',
    hint: 'Hello',
  },
  'loop': {
    type: {},
    subform: {
      day: {
        type: 0,
        form: 'input',
        unit: 'day'
      },
      time: {
        type: 0,
        form: 'input',
        unit: 'hour'
      }
    },
    form: 'input',
    label: 'degree',
    placeholder: 'end',
    hint: 'Hello',
  },
  // 'major': [],
})
export default Basic
